package service;

import Dao.BanjiDao;
import bean.Banji;
import bean.Student;
import factory.BanjiDaoFactory;

import java.util.List;

public class BanjiServiceImpl implements BanjiService {

    private BanjiDao banjiDao;

    public BanjiServiceImpl() {
        banjiDao = BanjiDaoFactory.getBanjiDao ();
    }

    @Override
    public List<Banji> BanjiShowService() {
        return banjiDao.Banjishow ();
    }

    @Override
    public int BanjiAddService(Banji banji) {
        return banjiDao.BanjiAdd (banji);
    }

    @Override
    public int BanjiDeleteService(String id) {
        return banjiDao.BanjiDelete (id);
    }

    @Override
    public int BanjiModifyService(Banji banji) {
        return banjiDao.BanjiModify (banji);
    }

    @Override
    public List<Student> BanjiFindService(String id) {
        return banjiDao.BanjiFind (id);
    }
}
